﻿<?php
//error_reporting(0);
$username=$_GET["username"];
$pdo=new PDO('mysql:host=localhost;dbname=db_pet','root','root');
		$sql5="select username from projector";
		$stmt5=$pdo->prepare($sql5);
		$stmt5->execute();
		while($row5=$stmt5->fetch()){
			$usernames[]=$row5['username'];
			
		}
		
if(in_array($username,$usernames)){
	$response="该账号已注册可"."<a href='../view/login.php'>直接登录</a>";
}
echo $response;
?>
		
